#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "openglwidget.h"
#include "customdata.h"
#include <QListWidget>
#include <QPushButton>
#include <QHash>
#include <QStringList>
#include <QComboBox>
#include <QMediaRecorder>

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();
signals:
    void TriggerAnimation(bool isStop);
protected slots:
    void btnSettingFolder();
    void currentRowChanged(int currentRow);
    void btnAnimationClicked();
private:
    QList<QList<float>> readData(QString strname);
    QHash<QString,QVector<double>> readStringFEMData(QString strname);
    QHash<QString,QVector<double>> readTouchData(QString strname);
    CustomData LoadData(QString fileDir);
    OpenGLWidget *mOpenGLWidget;
    QListWidget *listWidget;
    QPushButton *btnAnimation;
    QPushButton *btnSaveAnimation;
    QLabel *lableFEMParams;
    QComboBox *cbBoxFEMParams;
    QString m_StrPath;
    QHash<QString,CustomData> *mHash;
};

#endif // MAINWINDOW_H
